﻿using System;
using System.Collections.Generic;
namespace IDAL
{
    public interface IVideoDAL
    {
        List<Model.Video> GetVideosByTypeIdAndIsTry(int typeId);
        List<Model.Video> GetVideosIsTry();
        bool AddVideo(Model.Video video);
        bool UpdateVideo(Model.Video video);
        void FillVideoWithReader(Model.Video video, System.Data.SqlClient.SqlDataReader reader);
        Model.Video GetVideoById(int Id);
        List<Model.Video> SearchVideos(string keyType, string keyWord);
        int GetVideoTypeIdByName(String name);
        List<Model.Video> GetVideosByTypeId(int typeId);
        Dictionary<String, int> GetAllTypeInfo();
        bool DeleteVideoById(int id);
    }
}
